#ifndef BLACKBOARDSTATEJOINING_H
#define BLACKBOARDSTATEJOINING_H

#include "core/Node.h"
#include "BlackboardState.h"

class BlackboardStateJoining : public BlackboardState
{
public:
    static BlackboardState * instance();

    virtual void packetReceived(BlackboardManager * manager, AbstractPacket * packet);

    virtual const char * getStateName() { return "BlackboardStateJoining"; }

    void setJoiningNode(const QString & joinAddress, quint16 joinPort);
protected:
    BlackboardStateJoining() {}
private:
    static BlackboardStateJoining * instancePtr;

    QString joinAddress;
    quint16 joinPort;
};

#endif // BLACKBOARDSTATEJOINING_H
